<template>
	<div class="city-list">
		<div>
			<div v-for="(item,index) in city">
			   <div class="list-title">
			    {{item.initial}}
			   </div>
			   <ol class="list-item">
			    <li v-for="(item,index) in item.list">{{item.name}}</li>
			   </ol>
			  </div>
		</div>
	</div>
</template>

<script>
	export default {
		props:['city'],
		data() {
			return {
				
			}
		},
	}
</script>

<style scoped>
	.city-list{
		width: 100%;
		font-size: 0.28rem;
	}
	.list-title{
		padding: 0.2rem 0.3rem;
		text-align: left;
	}
	.list-item{
		background-color: white;
		color: #212121;
		position: relative;
		overflow: hidden;
	}
	.list-item:before{
		content: "";
		position: absolute;
		border-left: 1px solid #ddd;
		border-right: 1px solid #ddd;
		width: 25%;
		height: 100%;
		left: 25%;
	}
	.list-item:after{
		content: "";
		position: absolute;
		border-right: 1px solid #ddd;
		right: 25%;
		width: 25%;
		height: 100%;
	}
	.list-item li{
		width: 25%;
		height: 0.9rem;/*45px*/
		float: left;
		line-height: 0.9rem;
		border-bottom: 1px solid #ddd;
	}
</style>
